package com.tc.quartz.server.core;

/**
 * @author yongjin.ye
 *
 */
public enum StatusEnum {

	//运行结果code 0000成功, 0001执行中,9001重复执行,9002Bean或Class未找到,9003未找到对应的Method方法,9004实例化异常,9005安全权限异常, 9999未知异常
	SUCCESS("0000", "成功"), 
	RUNING("0001", "执行中"), 
	ERR_REPEATED("9001", "重复执行"), 
	ERR_NO_CLASS_FOUND("9002", "Bean或Class未找到"),
	ERR_NO_METHOD_FOUND("9003", "未找到对应的Method方法"),
	ERR_INSTANTIATION("9004", "实例化异常"), 
	ERR_ILLEGAL_ACCESS("9005", "安全权限异常"), 
	ERR_NO_PROXY_PARAMS("9006", "缺少参数[PROXY_CLASS_NAME或PROXY_METHOD_NAME]"), 
	ERR_TRIGGER_NEXT_jOB("9007", "触发nextjob异常"), 
	ERR_TRIGGER_MISFIRED("9101", "错过触发时间"), 
	ERR_OTHER("9999", "未知异常");

	private String value;
	private String desc;

	StatusEnum(String value) {
		this.value = value;
	}

	StatusEnum(String value, String desc) {
		this.value = value;
		this.desc = desc;
	}

	public String getValue() {
		return value;
	}

	public String getDesc() {
		return desc;
	}
}
